import { Vue, Component } from 'vue-property-decorator'
import loginHead from "./incs/loginHead.vue";
import loginFoot from "./incs/loginFoot.vue";
import '@/css/layer.css';
import '@/css/css.css';
import '@/css/media.css';
import { Regulars } from '@/util/regular';
import { Common } from '../../util/common';
Vue.config.productionTip = false

@Component({
    components: {
        loginhead: loginHead,
        loginfoot: loginFoot
    }
})
export default class LoginVue extends Vue {
    public SMS='短信获取';
    public audioMes='语音获取';
    public SMState = 0;
    public AudioState = 0;
    mounted() {
    }
    /**
     * cutdown
     */
    public cutdown(num:number=60) {
        this.SMState=1;
        var timer = window.setInterval(()=>{
            num--;
            this.SMS='已发送'+num;
            if (num==0){
                this.SMState = 0;
                this.SMS = '短信获取';
                window.clearInterval(timer);
            }

        },1000);


    }
}

let login = new LoginVue({
    el: '#regMask'
})